package leetcode.多线程;

import java.util.*;

/**
 * @author ：zsy
 * @date ：Created 2021/9/9 20:15
 * @description：
 */
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int k = in.nextInt();
        ArrayList<Integer> list = new ArrayList<>();
        HashSet<Integer> set = new HashSet<>();
        for (int i = 0; i < n; i++) {
            int num = in.nextInt();
            if (set.add(num)) {
                list.add(num);
            }
        }
        if (k >= n) {
            System.out.println(0);
            return;
        }
    }
}
